package cn.dgut.training.entity.activity;

import cn.dgut.training.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Carousel对象", description="轮播广告表")

public class Carousel extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "广告标题")
    private String name;

    @ApiModelProperty(value = "广告内容")
    private String content;

    @ApiModelProperty(value = "点击后跳转链接")
    private String url;

    @ApiModelProperty(value = "排序")
    private Integer position;

    @ApiModelProperty(value = "广告开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "广告结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "是否启动")
    private Boolean enabled;

    private Long goodsId;

}
